<?php

class Core_Model_DbTable_DocumentFolders extends Zend_Db_Table_Abstract {

    protected $_name = 'document_folders';

    public function getFolders($gi_id)
    {
        $select = $this->select()
                       ->from($this->_name)
                       ->where("gi_id = $gi_id");
        return $this->fetchAll($select);
    }
    
    public function getByPK($id)
    {
        return $this->fetchRow("id = $id");
    }
}

?>
